checkout: Always replace existing content in overlay mode
authorColin Walters <walters@verbum.org>
Wed, 13 Mar 2024 16:50:28 +0000 (12:50 -0400)
committerColin Walters <walters@verbum.org>
Wed, 13 Mar 2024 18:07:54 +0000 (14:07 -0400)
commitbb6dfd3ab0bbd87497e58bc0dd0ec65c061c9a12
tree0af9ca5637b8378cbf5cb28eec098032ff1ae268
parent223a1af4b537268b3e3decdf763bec0dc196b11d
checkout: Always replace existing content in overlay mode

The combination of the "honor whiteout" and "union" flags
are intended to basically be "merge trees like overlayfs does".
But we were missing this case in order to support e.g. replacing
a symlink with a directory.
src/libostree/ostree-repo-checkout.c
tests/basic-test.sh